﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sahit.iSoilHotel.Infrastructure.Web.Events;
using Sahit.iSoilHotel.Portal.ServiceProxy.Tavern.Models.Record;
using Sahit.iSoilHotel.Infrastructure.Web.Caching;
using Sahit.iSoilHotel.Infrastructure.Web.Framework;
using Sahit.iSoilHotel.Portal.ServiceProxy.Common;

namespace Sahit.iSoilHotel.Portal.Infrastructure.Caching
{
    public partial class ModelCacheEventConsumer :
        IConsumer<EntityInserted<RecordModel>>,
        IConsumer<EntityUpdated<CheckInModel>>,
        IConsumer<EntityDeleted<RecordModel>>
    {

        private readonly ICacheManager cacheManager;

        public ModelCacheEventConsumer()
        {
            this.cacheManager = EngineContext.Current.ContainerManager.Resolve<ICacheManager>("iSoil_Cache_Static");
        }

        public void HandleEvent(EntityInserted<RecordModel> eventMessage)
        {
            
        }

        public void HandleEvent(EntityUpdated<CheckInModel> eventMessage)
        {
        }

        public void HandleEvent(EntityDeleted<RecordModel> eventMessage)
        {
            
        }
    }
}